<?php

namespace App\Models;

class UserInfo extends Model
{
    protected $table = 'ucenter_user_info';
    protected $primaryKey = 'user_id';
    public $timestamps = false;
    protected $guarded = ['user_id'];

    public function setPasswordAttribute($value)
    {
        $this->attributes['password'] = md5($value);
    }
}
